package com.yhsoft.goods.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品sku信息表
 * </p>
 *
 * @author yyyyyyyh
 * @since 2023-09-22
 */
@TableName("g_sku_info")
@Data
public class SkuInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * goods_id
     */
    private Integer goodsId;

    /**
     * sku_name_id
     */
    private Integer skuNameId;

    /**
     * sku信息
     */
    private String skuInfo;

    /**
     * 价格
     */
    private BigDecimal skuPrice;

    /**
     * 建议售价
     */
    private BigDecimal advocatePrice;

    /**
     * 库存
     */
    private Integer stock;

    /**
     * 逻辑删除
     */
    private Integer deleted;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime createTime;

}
